home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Utilities Experience
/
The Utilities Experience - Volume 1.iso
/
software
/
demos
/
r-z
/
sbase4pro
/
trading
/
stkdc.sbp
< prev
next >
Wrap
Text File
|
1995-07-10
|
3KB
|
142 lines
SBP
ÿ½ STKDC
ÿ½ Enter Daily Exchange Rates/Stock Prices/Certificate Numbers
ÿ½ Last updated Jan 03, 90
ÿ³ÿ_ÿwferror
stkdc:ÿ½ Assign function parameters
ÿ½ k% is 1 for string and 2 for numeric key
cur%ÿ1:sto%ÿ2:nos%ÿ3:k%ÿ1:frow%ÿ10
ÿÉÿæmb%
ÿæcur%
f$ÿ"Currency":fkey$ÿ"Currency":fmd$ÿ"stkdc":frow%ÿ12
ÿæsto%
f$ÿ"stocks":fkey$ÿ"Stock_Key":fmd$ÿ"stkds"
ÿænos%
f$ÿ"trans":fkey$ÿ"Transaction ref":fmd$ÿ"stkdn":k%ÿ2
ÿÿÉ
ÿ´ÿf$
ÿ£fkey$
ÿ¡mb%ÿnos%ÿpÿÉÿÐTrans_Type ÿ"b"ÿCert_Sent_yn ÿ"n"
ÿ´ÿfmd$
floop:ÿ½ Display from first record
ÿvslimits
ÿ¡k%ÿ1ÿpckey$ÿfstk$ÿ^ckey%ÿfstk%
ÿvspage
fwait:ÿ½ Auf Drucktaste warten
mp%ÿ0
ÿÊÿËss13$
ÿÏÿß
ÿ½ Zeile editieren
ÿ¡(mp%ÿ0ÿmp%ÿlrec%)ÿpÿwfwait
ÿÊÿËss4$
ÿÉÿÿ"mp%
ÿßÿ³
ÿÉÿæmb%
ÿæcur%
ÿUSD Xrate ÿ"mp%
ÿæsto%
ÿPrice Asked ÿ"mp%ÿqPrice Bid ÿ"mp%
ÿænos%
ÿCertificate_No ÿ"mp%
ÿÿÉ
ÿÂms1$,"",127,a%
ÿ¡a%ÿp
ÿÉÿæmb%
ÿæcur%
Date of Xrate.CURRENCYÿÿQ
ÿæsto%
Price Date.STOCKSÿÿQ:Price Time.STOCK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